package com.mm.dao;

import com.mm.pojo.User;
import org.springframework.stereotype.Component;

/**
 * @author XiaoLuo
 * @ClassName: UserFeignClientFallback
 * @Description: ${todo}
 * @date 2019/4/7 19:52
 */
@Component
public class UserFeignClientFallback implements UserFeignClient {
	@Override public User queryUserById(Long id) {

		User user = new User();
		user.setId(id);
		user.setName("用户查询异常");
		return user;
	}
}
